
const error = {
    //验证必填项
    async throw(message, code, status, errors) {
        let retError = {
            message: message || "系统错误 !!!",
            code: code || -99,
            status: status || 200,
            errors: errors || {}
        };
        throw retError;
    }
}

module.exports = error;